#!/usr/bin/python
# coding:utf-8

import requests
from bs4 import BeautifulSoup

test_url = 'https://www.toutiao.com/a6701925180798665228/'


def download_page(url):
    headers = {
        'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.80 Safari/537.36'
    }
    data = requests.get(url, headers=headers).content
    return data


movie_name_list = []


def parse_html(html):
    soup = BeautifulSoup(html,'lxml')
    title = soup.select('title')[0].get_text()
    content = soup.select('content')[0]
    print(content)

def main():
    handle = parse_html(download_page(test_url))

if __name__ == '__main__':
    main()